//
// Created by 86186 on 2021/12/6.
//

#ifndef FFMPEG_AUDIODECODER_H
#define FFMPEG_AUDIODECODER_H

#include "../config.h"
#include "string"
#include <queue>
#include <thread>
#include <condition_variable>

#include "../player/OpenSlPlayer.h"
#include "../config.h"
#include "AVPacketQueue.h"
#include "DecodeResource.h"

using namespace std;

extern "C" {
#include "../include/libavformat/avformat.h"
#include "../include/libswresample/swresample.h"
};


class AudioDecoder {
public:
    void decode(string url);
    DecodeResource *resource = NULL;
};

#endif //FFMPEG_AUDIODECODER_H
